package com.mc.main;

import java.util.EventObject;

/**
 * Event that occurs when a sensor is read at time 'time' 
 * and value 'value' is read.
 * 
 * @author Mikael Bertlin
 *
 */

public class SensorEvent extends EventObject{
	
	private static final long serialVersionUID = 1L;
	private int value = 0;
	private int time = 0;
	
	public SensorEvent(Object source, int value) {
		super(source);
		this.value = value;
	}
	
	public int getValue(){
		return value;
	}
	public void setValue(int value){
		this.value = value;
	}
	public void setTime(int time){
		this.time = time;
	}
	public int getTime(){
		return time;
	}
}
